package cn.wjssl.infrastructure.persistent.dao;

import cn.wjssl.infrastructure.persistent.po.StrategyAwardPO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 策略奖品
 */
@Mapper
public interface IStrategyAwardDao {

    // List<StrategyAward> queryStrategyAwardList();

    // 通过策略ID 查询 StrategyAwardEntity 所需要的所有信息
    List<StrategyAwardPO> queryStrategyAwardListByStrategyId(Long strategyId);

    // 根据strategyAwardPO查询对象, 查询奖品对应的 rule_model
    String queryStrategyAwardRuleModels(StrategyAwardPO strategyAwardPO);

    // 根据strategyAwardPO查询对象, 更新商品库存
    void updateStrategyAwardStock(StrategyAwardPO strategyAwardPO);

    StrategyAwardPO queryStrategyAward(StrategyAwardPO strategyAwardPO);
}
